package scenic.toolkit.event;

import java.util.EventObject;

import scenic.toolkit.ComponentView;

public class KeyEvent extends EventObject {
	private static final long serialVersionUID = 1L;

	private java.awt.event.KeyEvent awtEvent;
	
	KeyEvent(ComponentView source, java.awt.event.KeyEvent awtEvent) {
		super(source);
		this.awtEvent = awtEvent;
	}
	
	char getKeyChar() {
		return awtEvent.getKeyChar();
	}
	
	int getKeyCode() {
		return awtEvent.getKeyCode();
	}
	
	int getKeyLocation() {
		return awtEvent.getKeyLocation();
	}
	
	boolean isActionKey() {
		return awtEvent.isActionKey();
	}
}
